package cn.community.system.mapper;

import cn.community.system.domain.MemberVo;
import cn.community.system.vo.AssoMemberVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface MemberVoMapper {
    int insert(MemberVo record);

    void update(MemberVo memberVo);

    List<MemberVo> selectAll();

    void deleteByPrimaryKey(Long id);

    void batchDelete(Long[] ids);

    void passOne(@Param("id") Long id, @Param("assoId") Long assoId, @Param("isAgree")Integer isAgree);

    void passById(@Param("id")Long id, @Param("isAgree")Integer isAgree,@Param("passTime")Date passTime);

    void updatePassTime(@Param("id") Long id, @Param("assoId") Long assoId, @Param("passTime")Date passTime);

    List<MemberVo> selectByMemberId(Long id);

    MemberVo selectByMemberIdAndAssoId(@Param("id") Long id, @Param("assoId") Long assoId);

    void edit(MemberVo memberVo);
}